package com.zorn.platform.user.action;

import com.zorn.core.provider.ActionSupportProvider;
import com.zorn.platform.user.service.IUserProfileService;

public class UserProfileAction extends ActionSupportProvider {

	/* Fields
	================================================== */
	private IUserProfileService userProfileService;

	/* Methods
	================================================== */
	public String query() {
		userProfileService.query(getParameterMap());

		setJSONObject(userProfileService.getResult());

		return JSON_RESULT;
	}

	public String count() {
		userProfileService.count(getParameterMap());

		setJSONObject(userProfileService.getResult());

		return JSON_RESULT;
	}

	public String insert() {
		userProfileService.insert(getParameterMap());

		setJSONObject(userProfileService.getResult());

		return JSON_RESULT;
	}

	public String update() {
		userProfileService.update(getParameterMap());

		setJSONObject(userProfileService.getResult());

		return JSON_RESULT;
	}

	public String delete() {
		userProfileService.delete(getParameterMap());

		setJSONObject(userProfileService.getResult());

		return JSON_RESULT;
	}

	/* Getters & Setters
	================================================== */
	public void setUserProfileService(IUserProfileService userProfileService) {
		this.userProfileService = userProfileService;
	}

}